import request from '@/router/axios'

export const pending = (params) => {
  return request({
    url: '/oms-api/oms/data/centre/get/pending',
    method: 'get',
    params
  })
}

export const getStorePending = (params) => {
  return request({
    url: '/pms-api/pms/data/centre/getStorePending',
    method: 'get',
    params
  })
}

export const panelGroup = (data) => {
  return request({
    url: '/oms-api/oms/data/centre/get/operationalData',
    method: 'get',
    params: data
  })
}

export function salesAmount(params) {
  return request({
    url: '/oms-api/oms/data/centre/get/salesAmount',
    method: 'get',
    params
  })
}

export function orderNumber(params) {
  return request({
    url: '/oms-api/oms/data/centre/get/orderNumber',
    method: 'get',
    params
  })
}

export function getEnrollmentByTime(params) {
  return request({
    url: '/ums-api/ums/data/centre/getEnrollmentByTime',
    method: 'get',
    params
  })
}

// ----- 礼品卷支付 ------
export function giftPay(params) {
  return request({
    url: '/sms-api/sms/gift/giftPay',
    method: 'get',
    params
  })
}

export function pcPay(params) {
  return request({
    url: '/yms-api/aliPay/formPcPay',
    method: 'get',
    params
  })
}
